import Vue from 'vue'
import Router from 'vue-router'
const Msite=()=>import('../pages/Msite/Msite')
const Order=()=>import('../pages/Order/Order')
const Search=()=>import('../pages/Search/Search')
const Profile=()=>import('../pages/Profile/Profile')
const Login=()=>import('../pages/Login/Login')
Vue.use(Router)

export default new Router({
  routes: [
   {
    path:'/msite',
    name:'msite',
    component:Msite,
    meta:{
      showFooter:true
    }
   },
   {
    path:'/order',
    name:'order',
    component:Order,
    meta:{
      showFooter:true
    }
   },
   {
    path:'/search',
    name:'search',
    component:Search,
    meta:{
      showFooter:true
    }
   },
   {
    path:'/profile',
    name:'profile',
    component:Profile,
    meta:{
      showFooter:true
    }
   },
   {
    path:'/login',
    name:'login',
    component:Login
   },
   {
     path:'/',
     redirect:'/msite'
   }
  ]
})
